package com.imooc.miaosha.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 模块描述: <br>
 * (从配置文件中读取盐值)
 *
 * @Author: Mr. xyb
 * @Date: 2019/4/15 18:25
 * @since: 1.8.0
 * @version: 1.0.0
 */
@Component
public class Md5Constant {

    public static String sale;

    @Value("${md5.sale}")
    public void setSale(String sale) {
        Md5Constant.sale = sale;
    }

    public String getSale() {
        return sale;
    }
}
